home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / LANG / C / GCC / CLIB / !clib / h / errno < prev    next >
Text File  |  1997-04-06  |  5KB  |  206 lines

  1. /* errno.h
  2.  
  3.    For use with the GNU compilers and the SharedCLibrary.
  4.    (c) Copyright 1997, Nick Burrett.  */
  5. #ifndef __ERRNO_H
  6. #define __ERRNO_H
  7.  
  8. #ifndef errno
  9. #define errno __errno
  10. extern volatile int errno;
  11. #endif
  12.  
  13. /* Domain error. An input argument is outside the domain over
  14.    which the mathematical function is defined.  */
  15. #define EDOM 1
  16.  
  17. /* Range error. The result of a function cannot be represented
  18.    as a double floating point value.  */
  19. #define ERANGE 2
  20.  
  21. /* An unrecognised signal is caught by the default signal handler.  */
  22. #define ESIGNUM 3
  23.  
  24. /* Operation not permitted.  */
  25. #define EPERM           4
  26. /* No such file or directory.  */
  27. #define ENOENT        5
  28. /* No such process.  */
  29. #define ESRCH        6
  30. /* Interrupted function call. */
  31. #define EINTR        7
  32. /* Input/output error.  */
  33. #define EIO        8
  34. /* No such device or address (device not configured).  */
  35. #define ENXIO        9
  36. /* Argument list too long.  */
  37. #define E2BIG        10
  38. /* Invalid executable file format (exec format error). */
  39. #define ENOEXEC     11
  40. /* Bad file descriptor.  */
  41. #define EBADF        12
  42. /* There are no child processes.  */
  43. #define ECHILD        13
  44. /* Resource deadlock avoided.  */
  45. #define EDEADLK             14
  46. /* Cannot allocate memory.  */
  47. #define ENOMEM        15
  48. /* Permission denied.
  49.    File permissions do not allow the attempted operation.  */
  50. #define EACCES        16
  51. /* Bad address. An invalid pointer was detected.  */
  52. #define EFAULT        17
  53. /* Block device required.  */
  54. #define ENOTBLK     18
  55. /* Device busy. Caused by a system resource that can't be shared
  56.    is already in use.  */
  57. #define EBUSY        19
  58. /* File exists.  */
  59. #define EEXIST        20
  60. /* Invalid cross-device link.  */
  61. #define EXDEV        21
  62. /* Operation not supported by device.  */
  63. #define ENODEV        22
  64. /* Not a directory.  */
  65. #define ENOTDIR     23
  66. /* Is a directory.  */
  67. #define EISDIR        24
  68. /* Invalid argument.  */
  69. #define EINVAL        25
  70. /* Too many open files in system.  */
  71. #define ENFILE        26
  72. /* Too many open files.  */
  73. #define EMFILE        27
  74. /* Inappropriate ioctl for device.  */
  75. #define ENOTTY        28
  76. /* Text file busy.  */
  77. #define ETXTBSY     29
  78. /* File too large.  */
  79. #define EFBIG        30
  80. /* No space left on device.  */
  81. #define ENOSPC        31
  82. /* Illegal seek.  */
  83. #define ESPIPE        32
  84. /* Read-only filing system.  */
  85. #define EROFS        33
  86. /* Too many links.  */
  87. #define EMLINK        34
  88. /* Broken pipe.  */
  89. #define EPIPE        35
  90. /* Operation would block.  */
  91. #define EWOULDBLOCK    36
  92. /* Operation now in progress.  */
  93. #define EINPROGRESS    37
  94. /* Operation already in progress.  */
  95. #define EALREADY    38
  96. /* Socket operation on non-socket.  */
  97. #define ENOTSOCK    39
  98. /* Destination address required.  */
  99. #define EDESTADDRREQ    40
  100. /* Message too long.  */
  101. #define EMSGSIZE    40
  102. /* Protocol wrong type for socket.  */
  103. #define EPROTOTYPE    41
  104. /* Option not supported by protocol.  */
  105. #define ENOPROTOOPT    42
  106. /* Protocol not supported */
  107. #define EPROTONOSUPPORT    43
  108. /* Socket type not supported */
  109. #define ESOCKTNOSUPPORT    44
  110. /* Operation not supported */
  111. #define EOPNOTSUPP    45
  112. /* Protocol family not supported.  */
  113. #define EPFNOSUPPORT    46
  114. /* Address family not supported by protocol family. */
  115. #define EAFNOSUPPORT    47
  116. /* Address already in use */
  117. #define EADDRINUSE    48
  118. /* Can't assign requested address.  */
  119. #define EADDRNOTAVAIL    49
  120. /* Network is down.  */
  121. #define ENETDOWN    50
  122. /* Network unreachable */
  123. #define ENETUNREACH    51
  124. /* Network dropped connection on reset.  */
  125. #define ENETRESET      52
  126. /* Software caused connection abort.  */
  127. #define ECONNABORTED    53
  128. /* Connection reset by peer */
  129. #define ECONNRESET    54
  130. /* No buffer space available */
  131. #define ENOBUFS        55
  132. /* Socket is already connected */
  133. #define EISCONN        56
  134. /* Socked is not connected */
  135. #define ENOTCONN    57
  136. /* Can't send after socket shutdown.  */
  137. #define ESHUTDOWN    58
  138. /* Too many references: can't splice.  */
  139. #define ETOOMANYREFS    59
  140. /* Connection timed out.  */
  141. #define ETIMEDOUT    60
  142. /* Connection refused */
  143. #define ECONNREFUSED    61
  144. /* Too many levels of symbolic links.  */
  145. #define ELOOP        62
  146. /* File name too long.  */
  147. #define ENAMETOOLONG    63
  148. /* Host is down.  */
  149. #define EHOSTDOWN    64
  150. /* Host unreachable.  */
  151. #define EHOSTUNREACH    65
  152. /* Directory not empty.  */
  153. #define ENOTEMPTY    66
  154. /* Too many processes.  */
  155. #define EPROCLIM    67
  156. /* Too many users.  */
  157. #define EUSERS        68
  158. /* Disc quota exceeded.  */
  159. #define EDQUOT        69
  160. /* Stale NFS file handle.  */
  161. #define ESTALE        70
  162. /* Too many levels of remote in path.  */
  163. #define EREMOTE        71
  164. /* RPC struct is bad.  */
  165. #define EBADRPC        72
  166. /* RPC version wrong.  */
  167. #define ERPCMISMATCH    73
  168. /* RPC program not available.  */
  169. #define EPROGUNAVAIL    74
  170. /* RPC program version wrong.  */
  171. #define EPROGMISMATCH    75
  172. /* RPC bad procedure for program.  */
  173. #define EPROCUNAVAIL    76
  174. /* No locks available.  */
  175. #define ENOLCK        77
  176. /* Function not implemented.  */
  177. #define ENOSYS        78
  178. /* Inappropriate file type or format.  */
  179. #define EFTYPE        79
  180. /* Authentication error.  */
  181. #define EAUTH        80
  182. /* Need authenticator.  */
  183. #define ENEEDAUTH    81
  184. /* Resource temporarily unavailable.  */
  185. #define EAGAIN        82
  186. /* Inappropriate operation for background process.  */
  187. #define EBACKGROUND    100
  188. /* Translator died.  */
  189. #define EDIED        101
  190. /* ? */
  191. #define ED        102
  192. /* A pretty bad error.  */
  193. #define EGREGIOUS    103
  194. /* ? */
  195. #define EIEIO        104
  196. /* Gratuitous error.  */
  197. #define EGRATUITOUS    105
  198.  
  199. /* EOPSYS was originally called EOS but this caused problems.  */
  200. #define EOPSYS        106
  201. #define ESIG        107
  202.  
  203. #define __SYS_NERR    107
  204.  
  205. #endif
  206.